home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
TGCBOR20.ARJ
/
INTROPAK.COM
/
TWSIMPLE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-10
|
1KB
|
56 lines
#include "teglsys.h"
void simplewindow(void)
{
winframeptr wf;
twinit(&wf,10,10,300,120);
twsetheader(wf,"A Simple window");
twdrawwindowframe(wf);
}
void startup(void)
{
/* Optional Startup. Forcing a Video Mode */
/* Note: Use either tweasystart() or teglinit(). NOT both */
/* */
registertgidriver(GRCGABW_driver);
registertgidriver(GRVGA256_driver);
registertgidriver(GREVGA16_driver);
setstandardheapsize(20000l); /* Reserve about 20k for Video Drivers */
twcommoninit();
/* just use one of the following lines */
teglinit(videoautodetect(),12288l);
/* teglinit("CGA640x200x2", 12288l); */
/* teglinit("EGA640x350x16",12288l); */
/* teglinit("VGA640x480x16",12288l); */
/* teglinit("VGA320x200x256",12288l); */
/* teglinit("SVGA800x600x16",12288l); */
/* teglinit("SVGA640x480x256",12288l); */
/****************************************/
clearteglscreen();
seteasyfont(font14);
easyout();
}
void main(void)
{
/*tweasystart*/
startup(); /* see above */
setrgbpalette(240,0,0,0);
setrgbpalette(255,63,63,63);
setautorotate(TRUE);
setkeyboardmouse(FALSE);
simplewindow();
teglsupervisor();
}